#include "foreign_key_constraint.h"

ForeignKeyConstraint::ForeignKeyConstraint(const std::string& attributeName,
                                           const std::string& constraintName,
                                           const std::string& referenceTableName,
                                           const std::string& referenceAttributeName):
    Constraint(attributeName, constraintName), _referenceTableName(referenceTableName), _referenceAttributeName(referenceAttributeName) {
}

std::string ForeignKeyConstraint::GetReferenceTableName() const {
    return _referenceTableName;
}

void ForeignKeyConstraint::SetReferenceTableName(const std::string& referenceTableName) {
    _referenceTableName = referenceTableName;
}

std::string ForeignKeyConstraint::GetReferenceAttributeName() const {
    return _referenceAttributeName;
}

void ForeignKeyConstraint::SetReferenceAttributeName(const std::string& referenceAttributeName) {
    _referenceAttributeName = referenceAttributeName;
}
